package org.dromara.system.domain.bo;

import org.dromara.system.domain.TUserWallet;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 用户钱包业务对象 t_user_wallet
 *
 * @author Miles Meng
 * @date 2025-08-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TUserWallet.class, reverseConvertGenerate = false)
public class TUserWalletBo extends BaseEntity {

    /**
     * 用户钱包ID
     */
    @NotNull(message = "用户钱包ID不能为空", groups = { EditGroup.class })
    private Long walletId;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 剩余点数
     */
    @NotNull(message = "剩余点数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long points;


}
